<template>
	<view>
		<view class="smart-panel-title" @click="goDetailPage('login')"><text>登录</text></view>
		<view class="smart-panel-title" @click="goDetailPage('CityDiscovery')"><text>城市探索</text></view>
		<view class="smart-panel-title" @click="goDetailPage1('cardViewPage')"><text>新闻1</text></view>
		<navigator url="/pages/cardViewPage/cardViewPage" open-type="navigate">
			<view class="smart-panel-title" ><text>新闻2</text></view>
		</navigator>
		<navigator url="/pages/IntentPage/IntentPage" open-type="navigate">
			<view class="smart-panel-title" ><text>组件传值</text></view>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goDetailPage(e) {
				if (typeof e === 'string') {
					uni.navigateTo({
						url: '/pages/componnents/' + e + '/' + e,
					});
				} else {
					uni.navigateTo({
						url: e.url
					})
				}
			},
			goDetailPage1(e) {
				if (typeof e === 'string') {
					uni.navigateTo({
						url: '/pages/cardViewPage/' + e,
					});
				} else {
					uni.navigateTo({
						url: e.url
					})
				}
			
			}
		}
	}
</script>

<style>

</style>